package com.zhz.system.contract.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zhouhengzhe
 * @date 2023/4/27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleFindAllResponse {

    private List<RoleFindAllInfo> roleFindAllInfos;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class RoleFindAllInfo {

        @ApiModelProperty("主键ID")
        private String id;

        @ApiModelProperty("权限名称")
        private String name;

        @ApiModelProperty("说明")
        private String description;

        @ApiModelProperty("企业id")
        private String companyId;

        @ApiModelProperty("创建时间")
        private LocalDateTime createTime;

        @ApiModelProperty("更新时间")
        private LocalDateTime updateTime;

        @ApiModelProperty("创建人")
        private String creator;

        @ApiModelProperty("创建人编码")
        private String creatorCode;

        @ApiModelProperty("更新人")
        private String updater;

        @ApiModelProperty("更新人编码")
        private String updaterCode;
    }
}
